/**
 * 
 */
package com.et114.core.common;

/*
 * @author guanhw
 */
public class FrameWorkPropertiesBean {
	private String  dbType ;
	public static String DB_TYPE_KEY = "db.type" ;
	
	private int downloadMaxThread ; 
	public static String DOWNLOAD_MAX_THREAD = "download.maxThread" ;
	
	private int uploadMaxSize ;
	public static String UPLOAD_MAX_SIZE = "upload.MaxSize" ;
	
	private String uploadServerPath;
	public static String UPLOAD_SERVER_PATH = "upload.serverPath" ;
	
	private String charSet ;
	public static String APP_CHARSET = "app.charSet" ;
	
	private String dataProvider ;
	public static String DATA_PROVIDER = "data.provider" ; 
	
	public static String APP_SERVER_TOMCAT = "TOMCAT" ; 
	public static String APP_SERVER_WAS= "WAS" ; 
	private String appServer ; 
	public static String APP_SERVER = "app.server" ;
	
	
	public static String FRAMEWORK_LOG = "framework.log" ; 
	public static String FRAMEWORK_HASLOG = "yes" ; 
	public static String FRAMEWORK_NOLOG = "no" ; 
	public String frameworkLog = "no"  ; 
	
	
	
	public String getAppServer ( ) {
		return appServer;
	}
	public void setAppServer ( String appServer ) {
		this.appServer = appServer;
	}
	public String getDbType ( ) {
		return dbType;
	}
	public void setDbType ( String dbType ) {
		this.dbType = dbType;
	}
	public int getDownloadMaxThread ( ) {
		return downloadMaxThread;
	}
	public void setDownloadMaxThread ( int downloadMaxThread ) {
		this.downloadMaxThread = downloadMaxThread;
	}
	public String getCharSet ( ) {
		return charSet;
	}
	public void setCharSet ( String charSet ) {
		this.charSet = charSet;
	}
	public String getDataProvider ( ) {
		return dataProvider;
	}
	public void setDataProvider ( String dataProvider ) {
		this.dataProvider = dataProvider;
	}
	public int getUploadMaxSize ( ) {
		return uploadMaxSize;
	}
	public void setUploadMaxSize ( int uploadMaxSize ) {
		this.uploadMaxSize = uploadMaxSize;
	}
	public String getUploadServerPath ( ) {
		return uploadServerPath;
	}
	public void setUploadServerPath ( String uploadServerPath ) {
		this.uploadServerPath = uploadServerPath;
	}
	public String getFrameworkLog ( ) {
		if ( frameworkLog == null || "".equals ( frameworkLog.trim ( ) ) ) return  FRAMEWORK_NOLOG ;
		else return frameworkLog ;
	}
	public void setFrameworkLog ( String frameworkLog ) {
		if ( frameworkLog == null || "".equals ( frameworkLog.trim ( ) ) ) this.frameworkLog = FRAMEWORK_NOLOG ;
		else this.frameworkLog = frameworkLog;
	}
}
